<?php
namespace app\api\validate\Want;

use bang\validate\Validate;

/**
 * WantBuyValidate验证
 * Class WantBuyValidate
 * @package app\api\validate\Want
 */
class WantBuyValidate  extends Validate
{

    protected $rule =   [
        'user_id'  => 'require|integer|>:0',
        'goods_id'  => 'require',
        'cover'  => 'require',
        'title' => 'require',
        'describe'   => 'require',
    ];

    protected $field = [
        'user_id'   => '用户信息',
        'goods_id'  => '商品信息',
        'cover'     => '封面',
        'title'     => '标题',
        'describe'  => '描述',
    ];


    protected $message  =   [
        'user_id.require' => '缺少用户信息',
        'goods_id.require' => '缺少商品信息',
        'cover.require' => '缺少封面',
        'title.require' => '缺少标题',
        'describe.require' => '缺少描述',
    ];

    protected $scene = [
        'publishAudit'  =>  ['user_id' , 'goods_id' , 'cover' , 'title' , 'describe'],
    ];


}